import request from '@/utils/request'

// 查询经营用房管理列表
export function listCommercialproperty(query) {
  return request({
    url: '/czj/commercialproperty/list',
    method: 'get',
    params: query
  })
}

// 查询经营用房管理详细
export function getCommercialproperty(commercialid) {
  return request({
    url: '/czj/commercialproperty/' + commercialid,
    method: 'get'
  })
}

// 新增经营用房管理
export function addCommercialproperty(data) {
  return request({
    url: '/czj/commercialproperty',
    method: 'post',
    data: data
  })
}

// 修改经营用房管理
export function updateCommercialproperty(data) {
  return request({
    url: '/czj/commercialproperty',
    method: 'put',
    data: data
  })
}

// 删除经营用房管理
export function delCommercialproperty(commercialid) {
  return request({
    url: '/czj/commercialproperty/' + commercialid,
    method: 'delete'
  })
}
